home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2042 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  883 b 

  1. Path: newsbf02.news.aol.com!not-for-mail
  2. From: weatby@aol.com (Weatby)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Destructors in functions
  5. Date: 15 Jan 1996 02:02:23 -0500
  6. Organization: America Online, Inc. (1-800-827-6364)
  7. Sender: root@newsbf02.news.aol.com
  8. Message-ID: <4dcu5v$jcp@newsbf02.news.aol.com>
  9. References: <DL57qo.ICn@research.att.com>
  10. Reply-To: weatby@aol.com (Weatby)
  11.  
  12. Well now, I don't know what my compiler does, exactly.  I don't think I
  13. have tried it with objects within objects.  
  14.  
  15. But I assumed a bitwise copy, because the textbook I used in my C++ class,
  16. says so.  To quote, "..the default method of parameter passing in C++,
  17. including objects, is by value.  This means that a bitwise copy of the
  18. argument is made...."
  19.  
  20. Obviously, if the language or compiler calls a 'default' constructor, it
  21. should, in those cases, call a 'default' destructor.
  22.  
  23. But thanks anyway.
  24.